<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">



	<h:head>
	
		<link type="text/css" rel="stylesheet" href="themes/blitzer/blitzerSA.css" />

	
		<style type="text/css">
.scroll {
	width: 150px;
	height: 50px;
	overflow: hidden;
	border: 1px solid #000000;
}

.ui-menu-item {
	color: #004276;
}

.ui-menu-background {
	color: #E2DEDE
}

;
body {
	font-family: Arial, sans-serif;
	font-size: 0.8em;
	color: blue;
}

.ui-widget {
	font-size: 75%;
}

.nestedUnit {
	border: 0px none !important
}

.ui-layout-center .ui-layout-resizer {
	border: 1px solid #A8A8A8;
}

.ui-tree-item span {
	float: left;
}

.ui-tree {
	border: 0px none;
}

.ui-tabs {
	border: 0px none;
}

.tablitaStyle {
	width: 660px;
}

.barra {
	margin-left: 72%;
	position: fixed;
	top: 200px;
	width: 110px;
	background-color: #ffffff;
	z-index: 4;
	border: 2px #cccccc solid;
	padding: 4px;
}
</style>
	

	</h:head>

	<h:body>
	 <h:form   enctype="multipart/form-data">  
	 <p:growl id="messages" showDetail="true"/>  
	 
		<h:panelGrid columns="1" width="100%">
			<p:panel >
				<f:facet name="header">
					<h:outputLabel value="Solicitud de Requerimiento" />
				</f:facet>
				<h:panelGrid columns="2" width="50%">
					<h:outputLabel value="Nombre Requerimiento : "/>
					<h:inputText maxLength="8" value="#{registrarSolicitudMB.solRequerimiento.descripcion}" />
					<h:outputLabel value="Descripción :"/>
					<h:inputTextarea value="#{registrarSolicitudMB.solRequerimiento.descripcion}" />
					 
					 <h:outputLabel value="Subir Requerimiento" />
					
  
    <p:fileUpload  id="fileUp" fileUploadListener="#{registrarSolicitudMB.handleFileUpload}"
            mode="advanced"  value="#{registrarSolicitudMB.file}"
            update="messages"  
            auto="true"  
            sizeLimit="100000"   
            allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>  
  
   
					 <p:commandButton id="btnGrabar" value="Grabar" action="#{registrarSolicitudMB.grabarRegistro}" />
			
					 
					 <p:commandButton id="btnCancelar" value="Cancelar" />
				

				</h:panelGrid>
			</p:panel>
		</h:panelGrid>
		</h:form>
	</h:body>

</html>
